import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    name: 'Home',
    component: () => import('@/views/Home/index.vue')
  },
  {
    path: '/companyrelation',
    name: 'CompanyRelation',
    component: () => import('@/views/Relation/CompanyRelation.vue')
  },
  {
    path: '/algorithmcategory',
    name: 'AlgorithmCategory',
    component: () => import('@/views/Relation/AlgorithmCategory.vue')
  },
  {
    path: '/morerelation',
    name: 'MoreRelation',
    component: () => import('@/views/Relation/MoreRelation.vue')
  },
  {
    path: '/companygraphvis',
    name: 'CompanyGraphVis',
    component: () => import('@/views/GraphVis/company.vue')
  },
  {
    path: '/canvasdemo',
    name: 'CanvasDemo',
    component: () => import('@/views/Demo/index.vue')
  },
  {
    path: '/',
    name: 'MemberRelation',
    component: () => import('@/views/MemberRelation')
  },
  {
    path: '/sanguo',
    name: 'SanGuo',
    component: () => import('@/views/SanGuo')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
